package com.seven.thread;

import com.google.common.util.concurrent.RateLimiter;
import lombok.Data;

import java.util.concurrent.TimeUnit;

/**
 * @author sevenDay
 * @classname SevenRateLimiterEntity
 * @description: 描述TODO
 * @date 2018/6/29
 */
@Data
public  class SevenRateLimiterEntity   {
    /**
     * 限流器
     */

    private RateLimiter  rateLimiter;

    /**
     * 等待时间
     */
    private long time;

    /**
     * 单位，枚举类型
     */
    private TimeUnit timeUnit;
}
